﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO.Ports;
using System.Linq;
using System.Timers;
using System.Windows;
using System.Windows.Input;

using Notes.Properties;

namespace Notes
{
    public partial class MainWindow : ResizeableWindow
    {
        public static readonly DependencyProperty xxxProp = DependencyProperty.Register("xxx", typeof(string), typeof(MainWindow));
        public string xxx
        {
            get { return (string)GetValue(xxxProp); }
            set { SetValue(xxxProp, value); }
        }

        public static RoutedCommand Connect = new RoutedCommand();

        public MainWindow()
        {
            this.SourceInitialized += new EventHandler(InitializeWindowSource);
        }

        private void Connect_Executed(object sender, System.Windows.Input.ExecutedRoutedEventArgs e)
        {
        }

        private void Connect_CanExecute(object sender, System.Windows.Input.CanExecuteRoutedEventArgs e)
        {
        }

        private void Window_Closed(object sender, EventArgs e)
        {
            Settings.Default.Save();
        }

        protected void Close_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            this.Close();
        }
    }
}